﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Domain.UserInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

注册
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()){%>
    
        用户名<%= Html.TextBoxFor(model => model.Name)%><%=Html.ValidationMessageFor(model => model.Name)%>
        <%=Html.ValidationMessage("NameRepeat")%>
        <br />
        密码<%= Html.PasswordFor(model => model.Password)%><%=Html.ValidationMessageFor(model => model.Password)%>
        <br />
        密码重复<%= Html.PasswordFor(model => model.RepeatPassword)%><%=Html.ValidationMessageFor(model => model.RepeatPassword)%>
        <br />
        邮箱<%= Html.TextBoxFor(model => model.Email)%><%=Html.ValidationMessageFor(model => model.Email)%>
        <%=Html.ValidationMessage("EmailRepeat")%>
        <br />
        验证码<%= Html.TextBox("Code", "",new { maxlength = "4" })%>
        <img id="validateCode" name="validateCode" src="/Home/AuthCode" />
        <%=Html.ValidationMessage("Code")%>

        <input type="submit" value="注册" />
    <%} %>

</asp:Content>
